package com.mopaas.test.msg;

public enum MsgEnums {
    C_00001("Success."),
    C_00002("System error.");

    private final String message;

    private MsgEnums(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public static MsgEnums getByCode(String code) {
        MsgEnums result = null;
        for (MsgEnums tmp : values()) {
            if (tmp.name().equals(code)) {
                result = tmp;
            }
        }
        return result;
    }
}
